<!Doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>大旺福--{$title}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/assets/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/assets/layui/css/global.css" media="all">
</head>
<body>
<div class="layui-layout layui-layout-admin">

    <!-- header start -->
    {include file="layout/header.html"}
    <!-- header end -->

    <!-- nav start-->
    {include file="layout/nav.html"}
    <!-- nav end-->

    <!-- main start -->
    <div class="layui-body site-demo">
        <div class="layui-main">
            <fieldset class="layui-elem-field layui-field-title">
                <legend>{$title}</legend>
            </fieldset>
            <div class="site-block">
                <div class="content">
                    <form class="layui-form" action="#">
                        <div class="layui-form-item">
                            <div class="">
                                <button type="button" class="layui-btn layui-btn-warm add-category"><i class="layui-icon">&#xe608;</i> <span>选择分类</span></button>
                                <button class="layui-btn layui-btn-normal measure-data-export" type="button">导出</button>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div>
                                <div class="category-list layui-clear site-block layui-hide">
                                    <ul id="category-tree" class="layui-box layui-tree"></ul>
                                </div>
                            </div>
                        </div>
                        <table class="layui-table">
                            <colgroup>
                                <col>
                                <col>
                                <col>
                                <col>
                                <col>
                                <col>
                                <col>
                                <col>
                            </colgroup>
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>一级分类</th>
                                <th>二级分类</th>
                                <th>商品名称</th>
                                <th>规格</th>
                                <th>单位</th>
                                <th>价格</th>
                            </tr>
                            </thead>
                            <tbody id="supply-list-block">
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>

        </div>
    </div>
    <!-- main end -->
</div>

{literal}<script id="product-list" type="text/html">
    {{#  layui.each(d, function(index, item){ }}
        {{# layui.each(item.goodsList, function(k, v){ }}
            {{# if(v.shelf == 1){ }}
            <tr>
                <td>{{ v.product_id }}</td>
                <td>{{ (item.category)[0].category_name }}</td>
                <td>{{ (item.category)[1].category_name }}</td>
                <td>{{ v.product_name }}</td>
                <td>
                    {{# if((v.spec_array).length > 0){ }}
                        {{ (v.spec_array)[0].value }}
                    {{# }else{ }}
                        无规格
                    {{# } }}
                </td>
                <td>{{ v.precise_unit }}</td>
                <td>{{ v.sell_price }}</td>
            </tr>
            {{# } }}
        {{# }); }}
    {{# }); }}
</script>{/literal}
{include file="layout/footerJs.html"}
<script src="/assets/layui/js/supply/measure_list.js"></script>
</body>
</html>
